package com.knowledge.plus.设计模式.适配器模式;

/**
 * @author TPF
 * @since 2023/12/12
 */
class Cow {

    private String name;

    public Cow(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void talk(Cow anothor) {
        System.out.println(this.name + "(牛)正在与" + anothor.getName() + "(牛)交流...");
    }

}
